package com.atmc.mapper;

import com.atmc.entity.Article;
import com.atmc.entity.ResponseResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@Mapper
@Repository
public interface ArticleMapper {
//    Long selectOneById(@Param("userName") String userName);
    List<Article> selectAll();
    List<String> queryById(@Param("articleId") Long articleId);
    int insertArticleOne(Article Article);
    int updateOneLikerCre(@Param("id") Long articleId);
    int updateOneLikerDes(@Param("id") Long articleId);
//    List<Article> selectByUserName(@Param("userName") String userName);


}
